/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.yonsei.iwb.ts.model;

import com.hp.hpl.jena.rdf.model.Alt;
import com.hp.hpl.jena.rdf.model.Bag;
import com.hp.hpl.jena.rdf.model.Literal;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.RDFNode;
import com.hp.hpl.jena.rdf.model.RSIterator;
import com.hp.hpl.jena.rdf.model.ReifiedStatement;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.ResourceF;
import com.hp.hpl.jena.rdf.model.Seq;
import com.hp.hpl.jena.rdf.model.Statement;

/**
 *
 * @author dk
 */
public class Triple {
    private String subject;
    private String predicate;
    private ObjectNode object;
    
    public Triple(String subject, String predicate, String object, String objectType){        
        this.subject = subject;
        this.predicate = predicate;
        this.object = new ObjectNode(object, objectType);
    }
    public String getSubject() {
        return subject;
    }

    public String getPredicate() {
        return predicate;
    }

    public ObjectNode getObject() {
        return object;
    }
//    public Triple(String subject, String predicate, String object, String objectType){
        
//    }
    
    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();        
        sb.append(subject).append(" - ").append(predicate).append(" - ").append(object.toString());
        return sb.toString();        
    }
                
}
